/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuexiang.templateproject.R;
import com.xuexiang.templateproject.bean.VideoItemEntity;
//import kotlin.Metadata;
//import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
//
///* compiled from: VideoItemAdapter.kt */
//@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u0018\u00002\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\u0005¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00032\u0006\u0010\b\u001a\u00020\u0002H\u0014¨\u0006\t"}, d2 = {"Lcom/jcds/learneasy/ui/adapter/VideoItemAdapter;", "Lcom/chad/library/adapter/base/BaseQuickAdapter;", "Lcom/jcds/learneasy/entity/VideoItemEntity;", "Lcom/chad/library/adapter/base/viewholder/BaseViewHolder;", "()V", "convert", "", "holder", "item", "app_huaweiRelease"}, k = 1, mv = {1, 7, 1}, xi = 48)
///* loaded from: classes2.dex */
public final class VideoItemAdapter extends BaseQuickAdapter<VideoItemEntity, BaseViewHolder> {
    public VideoItemAdapter() {
        super(R.layout.item_video_item, null);
    }

    /* renamed from: l0 */
    public void convert(@NotNull BaseViewHolder holder, @NotNull VideoItemEntity item) {
//        Intrinsics.checkNotNullParameter(holder, "holder");
//        Intrinsics.checkNotNullParameter(item, "item");
        Glide.with(getContext()).load(item.getCoverImage()).into((ImageView) holder.getView(R.id.iv_album));
        ((TextView) holder.getView(R.id.tv_type_name)).setText(item.getVideoTypeName());
        ((TextView) holder.getView(R.id.tv_title)).setText(item.getTitle());
        ((TextView) holder.getView(R.id.tv_total_people)).setText(item.getTotalPeople() + "万人在学");
        ((TextView) holder.getView(R.id.tv_finish)).setText(String.valueOf(item.getFinishCount()));
        StringBuilder sb = new StringBuilder();
        sb.append('/');
        sb.append(item.getTotalCount());
        sb.append((char) 33410);
        ((TextView) holder.getView(R.id.tv_total)).setText(sb.toString());
    }

}